package com.magic.gre.mvp.model;

import com.magic.gre.Api;
import com.magic.gre.mvp.contract.GuideContract;
import com.noname.lib_base_java.mvp.BaseModelImpl;
import com.noname.lib_base_java.net.RtManager;

import java.util.Map;

import io.reactivex.Observable;
import io.reactivex.Observer;
import okhttp3.ResponseBody;

/**
 * Author: Lmoumou
 * Date: 2019-01-11 16:25
 * 文件名: GuideModelImpl
 * 描述:
 */
public class GuideModelImpl extends BaseModelImpl implements GuideContract.Model {
    @Override
    public void mSaveGuide(Observer<ResponseBody> observer, Map<String, Object> parmsMap) {
        Observable<ResponseBody> observable = RtManager.getInatance().createApi(Api.class).saveGuide(parmsMap);
        doHttp(observer,observable);
    }
}
